<div class="kt-modal-content">
    <div class="modal-header">
        <button type="button" class="close" ng-click="$dismiss()" aria-label="Close">
            <em class="ion-ios-close-empty sn-link-close"></em>
        </button>
        <h4 class="modal-title">{{kt.title}}</h4>
    </div>
    <div class="modal-body">
        <div ba-panel ba-panel-class="with-scroll light-text">
            <form name="Form" ng-submit="kt.save()">
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="name">设备名称</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="inputDevname" placeholder="设备名称"
                           ng-model="kt.device.name" required>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="inputDevuid">设备UID</label>
                    <input ng-disabled="kt.isView" type="text" class="form-control" id="inputDevuid" placeholder="设备UID"
                           ng-model="kt.device.deviceUid" required>
                </div>
                <div class="form-group col-md-6 col-sm-6 col-xs-6" ng-if="kt.isShowDev">
                    <label>设备类型</label>
                    <select ng-disabled="kt.isView" class="form-control" ng-model="kt.device.type" id="type"
                            title="设备类型" data-container="body" selectpicker required
                            ng-options="item.value as item.label for item in kt.devtypes">
                    </select>
                </div>

                <div class="form-group col-md-6 col-sm-6 col-xs-6" ng-if="kt.isGroupShow">
                    <label>设备分组</label>
                    <!--<input ng-disabled="kt.isView" type="text" class="form-control" id="parent" placeholder="上级分类"-->
                    <!--ng-model="kt.devgroup.parentId" required>-->
                    <!--<input type="text" id="parent" ng-click="kt.selectGroupTree()" class="form-control" ng-model="kt.devgroup.parentName" />-->

                    <input-tree node-name="kt.device.orgName" title="orgTitle" nodes="nodes" node-id="kt.device.orgId"></input-tree>
                </div>


                <div class="form-group col-md-6 col-sm-6 col-xs-6" ng-if="kt.isShowStatus">
                    <label>设备状态</label>
                    <!-- <input type="text" class="form-control" id="inputStatus" placeholder="Password"> -->
                    <select ng-disabled="kt.isView" class="form-control" ng-model="kt.device.isValid" id="type"
                            title="设备状态" data-container="body" selectpicker required
                            ng-options="item.value as item.label for item in kt.devstatus">
                    </select>
                </div>
                <div class="form-group col-md-12 col-sm-12 col-xs-12">
                    <label for="inputMap">设备地图</label>
                    <div id="bMap" style="height: 300px;"></div>
                </div>

                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <label for="name">设备地址</label>
                    <input type="text" class="form-control" id="address" placeholder="设备地址"
                           ng-model="kt.device.address">
                </div>

                <div class="form-group col-md-3 col-sm-3 col-xs-3">
                    <label for="name">地理经度</label>
                    <input type="text" class="form-control" id="lng" placeholder="经度" ng-model="kt.device.lng">
                </div>

                <div class="form-group col-md-3 col-sm-3 col-xs-3">
                    <label for="name">地理纬度</label>
                    <input type="text" class="form-control" id="lat" placeholder="纬度" ng-model="kt.device.lat">
                </div>


                <div class="form-group col-md-6 col-sm-6 col-xs-6">
                    <button type="submit" class="btn btn-danger btn-with-icon" ng-if="!kt.isView">
                        <i class="ion-heart"></i>保存
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>